using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;using UnityEngine.EventSystems;
using Random = UnityEngine.Random;

public class EasterEggManager : MonoBehaviour,IPointerClickHandler
{
    [SerializeField] private List<GameObject> EasterEggPrefabs;
    public GameObject KunTou;
    public Vector3 offSet;

    public void Start()
    {
        KunTou = GameObject.FindGameObjectWithTag("Rock");
    }

    public void OnPointerClick(PointerEventData eventData)
    {
        Instantiate(EasterEggPrefabs[Random.Range(0,EasterEggPrefabs.Count)]);
    }

}
